package client.gui;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BorderFactory;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;

public class ArtistPanel extends ItemPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8916031839960592232L;
	private JLabel ArtistLabel = new JLabel();
	private String ArtistName;
	
	public ArtistPanel(String Artist){
		//setLayout(null);
		init();
		ArtistName = Artist;
		ArtistLabel.setText(ArtistName);
	}

	private void init() {
		add(ArtistLabel);
		setPreferredSize(new Dimension(750,30));
		setBorder(BorderFactory.createLineBorder(Color.black));
	}
	
	public String getName(){
		return ArtistName;
	}
	
	public static void main(String[] args){
		JFrame t = new JFrame();
		t.setVisible(true);
		t.setBounds(0, 0, 800, 600);
		ArtistPanel p = new ArtistPanel("Red Hot Chili Peppers");
		t.getContentPane().add(p);
		t.getContentPane().validate();
	}
	
}